.class public Lnbisdk/bq;
.super Ljava/lang/Object;


# instance fields
.field private cW:Lnbisdk/rj;

.field private cX:Lnbisdk/ou;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public constructor <init>(Lnbisdk/rj;Lnbisdk/ou;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lnbisdk/bq;->cW:Lnbisdk/rj;

    iput-object p2, p0, Lnbisdk/bq;->cX:Lnbisdk/ou;

    return-void
.end method


# virtual methods
.method public final bG()Lnbisdk/dy;
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lnbisdk/rp;
        }
    .end annotation

    iget-object v0, p0, Lnbisdk/bq;->cX:Lnbisdk/ou;

    invoke-virtual {v0}, Lnbisdk/ou;->readByte()B

    move-result v0

    and-int/lit8 v1, v0, 0x3f

    add-int/lit8 v1, v1, 0x1

    if-gez v0, :cond_0

    add-int/lit16 v0, v0, 0x100

    :cond_0
    ushr-int/lit8 v0, v0, 0x6

    add-int/lit8 v0, v0, 0x1

    iget-object v2, p0, Lnbisdk/bq;->cX:Lnbisdk/ou;

    invoke-virtual {v2, v1}, Lnbisdk/ou;->bc(I)[B

    move-result-object v1

    iget-object v2, p0, Lnbisdk/bq;->cX:Lnbisdk/ou;

    invoke-virtual {v2, v0}, Lnbisdk/ou;->bc(I)[B

    move-result-object v0

    const/4 v2, 0x0

    move v3, v2

    :goto_0
    array-length v4, v0

    if-ge v3, v4, :cond_1

    shl-int/lit8 v2, v2, 0x8

    aget-byte v4, v0, v3

    and-int/lit16 v4, v4, 0xff

    or-int/2addr v2, v4

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_1
    new-instance v0, Lnbisdk/fb;

    iget-object v3, p0, Lnbisdk/bq;->cX:Lnbisdk/ou;

    invoke-direct {v0, v3, v2}, Lnbisdk/fb;-><init>(Lnbisdk/ou;I)V

    :try_start_0
    new-instance v2, Lnbisdk/js;

    iget-object v3, p0, Lnbisdk/bq;->cW:Lnbisdk/rj;

    invoke-direct {v2, v3, v1}, Lnbisdk/js;-><init>(Lnbisdk/rj;[B)V

    invoke-virtual {v2, v0}, Lnbisdk/dy;->a(Lnbisdk/fb;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    invoke-virtual {v0}, Lnbisdk/fb;->drain()V

    return-object v2

    :catchall_0
    move-exception v1

    invoke-virtual {v0}, Lnbisdk/fb;->drain()V

    throw v1
.end method

.method public final close()V
    .locals 1

    iget-object v0, p0, Lnbisdk/bq;->cX:Lnbisdk/ou;

    invoke-virtual {v0}, Lnbisdk/ou;->close()V

    return-void
.end method
